package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.ServiceItem;
import cn.wolfcode.car.business.query.ServiceItemQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ServiceItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ServiceItem record);

    ServiceItem selectByPrimaryKey(Long id);

    List<ServiceItem> selectAll();

    int updateByPrimaryKey(ServiceItem record);

    /**
     * 分页查询
     * @param qo
     * @return
     */
    List<ServiceItem> selectForList(ServiceItemQuery qo);

    /**
     * 上架
     * @param id
     * @param salestatusOn
     */
    void updateSaleStatus(@Param("id") Long id, @Param("salestatus") Integer salestatusOn);

    /**
     * 更改服务单项状态 为审核中
     * @param id
     * @param auditstatusAuditing
     */
    void changeAuditStatus(@Param("id") Long id, @Param("auditStatus") Integer auditstatusAuditing);
}